package com.ant.storage.dataSource;

import java.lang.annotation.*;

/**
 * @author hzd
 * @version 1.0
 * @date 2024/7/19 14:26
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DataSource {

    /**
     * 切换数据源名称
     */
    public DataSourceType value() default DataSourceType.MASTER;
}
